# Maintainer(Arch) : Artur Juraszek <artur@juraszek.xyz>
# Ex-Maintainer : Gonzalo Ciruelos <gonzalo.ciruelos@gmail.com>
# Ex-Maintainer : TheWaffleGuy <gvxq@hotmail.com>
# Contributor : Nicolas Floquet <nicolasfloquet AT gmail DOT com>
# Maintainer : Sagar Acharya <sagaracharya@tutanota.com>

pkgname=e2tools
pkgver=0.1.0
pkgrel=1
pkgdesc="A simple set of GPL'ed utilities to read, write, and manipulate files in an ext2/ext3 filesystem."
arch=('i686' 'x86_64')
url="https://github.com/e2tools/e2tools"
license=('GPL-2')
depends=('e2fsprogs')
options=(!buildflags)
source=("${url}/releases/download/v${pkgver}/e2tools-${pkgver}.tar.gz")
sha512sums=('5fde992727946d253acd46987944bdf49615d2ab45bbea715c86b304d117c6900dd70fcffb093f3d564247e27978b78b4710e7fea7ffd28375e804955fe4d5c9')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr
  make CPPFLAGS="-Wall"
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}/" install
}
